
<div class="bjui-pageContent">
    <!-- 内容区 -->
    <table id="authorityTable"></table>
    <script>
        $('#authorityTable').datagrid({
            dataUrl: URL+'findPageSmUser.do',
            filterThead:false,
            height:'90%',
            columns: [
                {name:'userId',label:'ID',width:300},
                {name: 'userName', label: '姓名',align:'center',width:300},
                {name: 'userSex', label: '性别', align: 'center',width:300,render:function(value, data){if(data.userSex == 1){
                        return '男';
                    }else if(data.userSex == 0){
                        return'女'
                    }else {
                        return;
                    }}},
                {name: 'userAge', label: '年龄',align:'center',width:300},
                {name: 'userMobile', label: '联系方式', align: 'center',width:300},
                {name:'fp',label:'权限分配',align:'center',width:500,
                    render:function(value, data){return "<a class='operation-btn operation-btn-normal'onclick='updateJurisdiction(\""+data.name+"\")'>分配</a>"}}
            ]
        })

        function updateJurisdiction(name) {
            BJUI.dialog({
                width:150,
                height:180,
                id:'jurisdiction',
                url:'html/hospital/jurisdiction.html',
                title:'权限分配'
            })
        }

    </script>
</div>
